package read;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.format.NumberFormat;
import lombok.Data;

/**
 * @ClassName ConverterData
 * @Description
 * @Author zhengjiang(99514925 @ qq.com)
 * @Date 2020-06-03 14:32
 * @Version V1.0
 **/
@Data
public class ConverterData {

    @ExcelProperty(converter = CustomStringStringConverter.class)
    private String string;

    /**
     * 这里用string 去接日期才能格式化。我想接收年月日格式
     */
    @DateTimeFormat("yyyy年MM月dd日HH时mm分ss秒")
    private String date;

    /**
    * 接受数字百分比
    */
    @NumberFormat("#.##%")
    private String doubleData;
}
